package com.zhoupeisen;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @ClassName ProductApplication
 * @Description TODO
 * @Author Administrator
 * @Data 下午 03:27
 * @Version 1.0
 **/
@SpringBootApplication
@EntityScan("com.zhoupeisen.entity")
@EnableEurekaClient
//激活feign
@EnableFeignClients

public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }


//    @LoadBalanced
//    @Bean
//    public RestTemplate restTemplate(){
//     return new RestTemplate();
//    }
}
